<template>
  <van-cell @click="$emit('intoDetail', item.pid)">
    <div class="goodsInfo">
      <div class="imgBox">
        <img :src="item.smallImg || item.small_img" />
      </div>
      <div class="description">
        <div class="goodsName">
          <p>
            <span class="name">{{ item.name }}</span
            ><span>{{ item.rule }}</span>
          </p>
          <p class="enname">{{ item.enname }}</p>
        </div>
        <div class="money">
          <span>&yen;{{ item.price }}</span>
          <span v-if="item.count">x{{ item.count }}</span>
        </div>
      </div>
    </div>
  </van-cell>
</template>

<script>
export default {
  name: "ItemList",
  props: {
    item: {
      type: Object,
      default() {
        return {};
      },
    },
  },
};
</script>

<style lang="less" scoped>
</style>